package com.freightoa.foundation.utlis

import android.app.Dialog
import android.content.Context
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import com.freightoa.base_foundation.R
import androidx.core.graphics.drawable.toDrawable

class LoadingDialog(context: Context) : Dialog(context, R.style.TransparentDialog) {

    init {
        setContentView(R.layout.loading_dialog)
        window?.setBackgroundDrawable(Color.TRANSPARENT.toDrawable())
        setCancelable(false)
    }
}


//loadingDialog.show() // 显示
//loadingDialog.dismiss() // 关闭